﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Web.Mvc;
using System.Web.Routing;
using System.Web.Mvc.Html;

using MyLab.Interfaces;

namespace MyLab.Mvc.Extensions
{
    public static class HtmlHelperExtensions
    {
        public static MvcHtmlString CreateMenu(this HtmlHelper html, string curr_className)
        {
            IMenu menu = new MainsiteMenu(html.ViewContext.Controller.ControllerContext.RouteData.Values);

            return new MvcHtmlString(menu.CreateMenu(curr_className));
        }
    }
}
